package com.sss.springcloud.service;

import com.sss.springcloud.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author sss
 * @date 2020-03-07 12:53
 **/
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE",fallback = PaymentFeignServiceFallback.class)//CLOUD-PAYMENT-SERVICE服务名称
public interface PaymentFeignService {

    @GetMapping("/payment/get/{id}")
     Result getPayment(@PathVariable(value = "id") Long id);

    @GetMapping("/feign/timeout")
     Result getTimeout();



}
